package com.yuanian.timingwheel.model.task;

import com.yuanian.timingwheel.model.task.base.BaseTask;


import java.util.Date;

/**
 *固定多少秒执行一次
 */
public class IntervalTask extends BaseTask {

    public IntervalTask(String businessId, long executionInterval, long executionRounds, String desc) {
        super(businessId, executionInterval, executionRounds, new Date(), desc);
    }

    public IntervalTask(long executionInterval, long executionRounds, String desc) {
        super(null, executionInterval, executionRounds, new Date(), desc);
    }

}
